package com.athena.view 
{
	import com.athena.ui.avt;
	import com.athena.utils.Util;
	/**
	 * ...
	 * @author ...
	 */
	public class avatar extends avt
	{
		private var _playerName : String;
		public function avatar(_p : int, _n : String, _v : int, _m : int) 
		{
			_playerName = _n;
			name_txt.text = _n;
			mark_txt.text = Util.numberFormat(_m, 0);
			vip_mc.gotoAndStop(_v + 1);
			ready_mc.visible = false;
			updatePosition(_p);
		}
		
		public function removeEvent() : void {
			
		}
		public function updatePosition(_p : int) : void {
			switch(_p) {
				case 0 : 
					x = 473; y = 481.3;
					break;
				case 1 : 
					x = 891.5; y = 239.5;
					break;
				case 2 : 
					x = 473; y = 7;
					break;
				case 3 : 
					x = 39; y = 239.5;
					break;
			}
		}
		
		public function setReady(v : Boolean) : void {
			ready_mc.visible = v;
		}
		public function get playerName():String 
		{
			return _playerName;
		}
		
		public function set playerName(value:String):void 
		{
			_playerName = value;
		}
		
	}

}